import request from "@/axios.js";

// 根据条件搜索学生
export function getStudentByCondition(content) {
  return request({
    url:'/gmu/tbl-student/getStudentByCondition',
    method:'post',
    data: content
  })
}

// 批量删除学生
export function deleteStudentsInBatches(userIds) {
  return request({
    url: '/gmu/tbl-student/deleteUserByIds/' + userIds,
    method: 'delete'
  })
}

// 删除单个学生
export function deleteSingleStudent(studentId) {
  return request({
    url: '/gmu/tbl-student/deleteStudent/' + studentId,
    method: 'delete',
  })
}

// 批量导出学生
export function batchExportStudents() {
  return request({
    url: '/gmu/excel/out',
    method: 'get',
    responseType: 'blob'
  })
}

// 获取当前页的学生信息
export function getCurrentPageStudents(pageInfo) {
  return request({
    url: '/gmu/tbl-student/pageStudent/' + pageInfo.current + '/' + pageInfo.size,
    method: 'get'
  })
}